<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix' => 'admin/app',
    'namespace' => 'Frieza\\Modules\\App\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->post('/bottomNav/sort', 'BottomNavController@sort');
    $router->post('/bottomNavConf/sort', 'BottomNavController@sort');
    $router->delete('/bottomNav/index/{id}', 'BottomNavController@delete');
    $router->delete('/bottomNavConf/index/{id}', 'BottomNavController@delete');

    $router->get('/bottomNav/index', 'BottomNavController@bottomNav')->name('app.bottomNav');
    $router->get('/bottomNav/index/{id}/edit', 'BottomNavController@addBottomNav')->name('app.editBottomNav');
    $router->post('/bottomNav/index/create', 'BottomNavController@saveBottomNav')->name('app.saveBottomNav');
    $router->get('/bottomNav/index/create', 'BottomNavController@addBottomNav')->name('app.addBottomNav');
    $router->get('/bottomNavConf/index', 'BottomNavController@bottomNavConf')->name('app.bottomNavConf');
    $router->get('/bottomNavConf/index/create', 'BottomNavController@bottomNavConfCreate')->name('app.bottomNavConfCreate');
    $router->get('/bottomNavConf/index/{id}/edit', 'BottomNavController@bottomNavConfCreate')->name('app.bottomNavConfCreate');
    $router->post('/bottomNavConf/index/create', 'BottomNavController@bottomNavConfSave')->name('app.bottomNavConfSave');

});
